<%@ page language="java" import="java.util.*,com.opensymphony.xwork2.util.ValueStack" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
      <base href="<%=basePath%>">
    <title>Hello JsP</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<s:head /> 
  </head>
  <body>
    This is my success page. <br/>
    <s:actionerror/>
    <s:form action ="helloWord" theme ="simple" validate="true" namespace="/tjx"> 
    	<s:token />
        Locale: <s:textfield name ="loc" /> &nbsp; <br/>
         <div style="color:red"><s:fielderror fieldName="loc"/>
         <s:property value="#username"/>
         <s:property value="username" />
         </div>
        <s:textfield name="msg" label ="Required String" /> <div style="color:red"><s:fielderror key="require_loc" fieldName="msg"/></div><br/>
        isCn: <s:textfield name ="isCn"/> &nbsp; <s:submit /> 
	 </s:form>
    <h2><s:property value ="msg" /></h2> 
    <s:debug></s:debug>
  </body>
</html>
